package com.simon.hse.activity.danger;

import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.simon.hse.R;
import com.simon.hse.activity.BaseActivity;

import org.xutils.view.annotation.ContentView;
import org.xutils.view.annotation.Event;
import org.xutils.view.annotation.ViewInject;

/**
 * 操作及相关作业活动排查标准
 */
@SuppressWarnings("all")
@ContentView(R.layout.activity_knowledge_two)
public class KnowledgeTwoActivity extends BaseActivity {
    @ViewInject(R.id.tv_common_title)
    TextView mTv_common_title;

    @ViewInject(R.id.ll_more)
    LinearLayout mLl_more;

    private boolean isShowMore = false;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        mTv_common_title.setText("操作及相关作业活动排查标准");
    }

    @Event(value = {R.id.iv_common_left, R.id.ll_eliminate_more})
    private void clickButton(View view) {
        switch (view.getId()) {
            case R.id.iv_common_left:
                finish();
                break;
            case R.id.ll_eliminate_more:
                if (isShowMore) {
                    mLl_more.setVisibility(View.GONE);
                } else {
                    mLl_more.setVisibility(View.VISIBLE);
                }
                isShowMore = !isShowMore;
                break;
        }
    }
}
